let arr1 = [11, 12, 13, 14, 15, 16]
let qh = document.querySelector('.qh')
let box = document.querySelector('.box')
let items = box.querySelector('.container').querySelectorAll('.item')
qh.addEventListener('click', function () {
    for (let i = 0; i < items.length; i++) {
        if (items[i].style.opacity == 1) {
            items[i].style.opacity = 0
        } else {
            items[i].style.opacity = 1
        }
    }
})
for (let i = 0; i < arr1.length; i++) {
    items[i].addEventListener('click', function () {
        box.style.backgroundImage = `url(./image/gallery-image-${arr1[i]}-420x308.jpg)`
        for (let j = 0; j < items.length; j++) {
            items[j].style.opacity = 0
        }
    })
}
//swiper
var mySwiper = new Swiper('.swiper', {
    loop: true, // 循环模式选项

    // 如果需要分页器
    pagination: {
        el: '.swiper-pagination',
    }
})

//wow
new WOW().init();
//end